package cn.iocoder.yudao.module.wine.controller.app.supplycount;

import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.wine.controller.app.supplycount.vo.AppSupplyCountPageReqVO;
import cn.iocoder.yudao.module.wine.controller.app.supplycount.vo.AppSupplyCountRespVO;
import cn.iocoder.yudao.module.wine.service.supplycount.SupplyCountService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.validation.Valid;

import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;

@Tag(name = "App - 酒类行情日K")
@RestController
@RequestMapping("/wine/supply-count")
@Validated
public class AppSupplyCountController {

    @Resource
    private SupplyCountService supplyCountService;




    @GetMapping("/list")
    @Operation(summary = "获得酒类行情日K")
    public CommonResult<PageResult<AppSupplyCountRespVO>> getSupplyCountPage(@Valid AppSupplyCountPageReqVO pageReqVO) {
        PageResult<AppSupplyCountRespVO> pageResult = supplyCountService.appGetSupplyCountPage(pageReqVO);
        return success(pageResult);
    }


}
